﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PolePositionMobileUtilityLogic;

namespace PolePositionMobileUtilityEntity
{
    public abstract class EBaseLookup
    {
        #region Protected 
        
        #region Properties
        
        protected string m_TableCollumnName = "Name";
        protected string m_TableName;
        protected string m_TableCollumnId;

        #endregion

        #region Methods
        protected virtual DataTable SelectAll()
        {
            LBaseLookUp _base = new LBaseLookUp();
            return _base.SelectAll(m_TableName, m_TableCollumnId, m_TableCollumnName);
        }


        #endregion

        #endregion

        #region Private
        private int m_Id;
        private string m_Name;

        #endregion

        #region Properties

        public int Id
        {
            get
            {
                return m_Id;
            }
            set
            {
                m_Id = value;
            }
        }

        public string Name
        {
            get
            {
                return m_Name;
            }
            set
            {
                m_Name = value;
            }
        }

        #endregion

        public EBaseLookup()
        {
            m_Id = Int32.MinValue;
            m_Name = string.Empty;
        }

    }
}
